package com.devilvan.betrice.poetry.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.devilvan.betrice.poetry.po.PoetryDetailPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Evad.Wu
 * @Description 古诗文网-内容信息表 持久层
 * @date 2022-11-29
 */
@Mapper
public interface PoetryDetailMapper extends BaseMapper<PoetryDetailPo> {
    /**
     * 根据标题和作者查询是否存在该记录
     *
     * @param title  标题
     * @param author 作者
     * @return 结果集数量
     */
    Integer findExsistByTitleAndAuthor(@Param("title") String title, @Param("author") String author);

    List<Object> testTemplate();
}